// main_init function main_init = function(mc){ } // main_effect function main_effect = function(mc,frame){ if (subs_done) end_effect = true; } // sub_init function sub_init = function(mc){ if (!out_effect) mc._alpha = 0; } // sub_effect function sub_effect = function(mc,frame){ perc = frame / lastsubframe; if (out_effect) perc = 1 - perc; mc._alpha = perc * 100; mc._x = mc.__x * Math.sin(perc * deg90); mc._y = mc.__y * Math.sin(perc * deg90); mc._xscale = 100 * Math.sin(perc * deg90); mc._yscale = 100 + 900 * Math.cos(perc * deg90); mc._rotation = 180 + perc * 180; if (frame == lastsubframe) mc.done=true; }